<%--
  Created by IntelliJ IDEA.
  User: hd
  Date: 2021/11/14
  Time: 15:32
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">

<!-- 可选的 Bootstrap 主题文件（一般不用引入） -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap-theme.min.css" integrity="sha384-6pzBo3FDv/PJ8r2KRkGHifhEocL+1X2rVCTTkUfGk7/0pbek5mMa1upzvWbrUbOZ" crossorigin="anonymous">

<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script>

<html>
<head>
    <title>Title</title>
    <style>
        .ca{
            position: relative;
            left: 330px;
        }
    </style>
</head>
<body>
<div class="container">
    <div class="row">
        <div class="col-md-10 col-offset-1">
            <h1 class="ca">图书管理系统</h1>
            <table class="table table-hover table-striped table-bordered">
                <thead>
                    <tr>
                        <th>图书编号</th>
                        <th>图书类型</th>
                        <th>图书名称</th>
                        <th>图书作者</th>
                        <th>出版社</th>
                        <th>是否借阅</th>
                    </tr>
                </thead>
                    <thead>
                    <c:forEach items="${aab.list}" var="a">
                        <tr scope="row">
                            <td>${a.book_code}</td>
                            <td>${a.book_type}</td>
                            <td>${a.book_name}</td>
                            <td>${a.book_author}</td>
                            <td>${a.publish_press}</td>
                          <td>  <a href="/qk/updata?id=${a.book_id}">${a.is_borrow}</a></td>
                        </tr>
                    </c:forEach>

                    <tr>
                        <td colspan="7">
                            <a href="${pageContext.request.contextPath}/qk/zs?pageindex=1">首页</a>
                            <a href="${pageContext.request.contextPath}/qk/zs?pageindex=${aab.pageNum-1}">上一页</a>

                            <c:forEach items="${aab.navigatepageNums}" var="i" >
                                <a href="${pageContext.request.contextPath}/qk/zs?pageindex=${i}">${i}</a>
                            </c:forEach>
                            <a href="${pageContext.request.contextPath}/qk/zs?pageindex=${aab.pageNum+1}">下一页</a>
                            <a href="${pageContext.request.contextPath}/qk/zs?pageindex=${aab.pages}">尾页</a>
                            &nbsp; ${aab.pageNum}/${aab.pages}

                        </td>

                    </tr>
                    </thead>
            </table>
        </div>
    </div>
</div>
<div class="container">
    <div class="row">
        <div class="col-md-10 col-offset-1">
                <h5>用户:</h5>
                <a href="#">${msg.user_code}</a>
                <a href="/qk/fh" class="ca">
                <button type="button" class="dele btn btn-primary btn-lg active">返回</button>
                </a>
        </div>
    </div>
</div>
</body>
</html>
